import fetch from 'common/src/utils/fetch';
import UTILS from "common/src/utils/utils";
export function initTeachingClassStudent (data = {}) {
    return fetch({
        url: '/api/scoremanagementservice/teachingClassScore/initTeachingClassStudent',
        method: 'get',
        params: data
    });
}
// 保存成绩暂存
export function saveScore (data = {}) {
    return fetch({
        url: '/api/scoremanagementservice/teachingClassScore/saveScore',
        method: 'POST',
        data
    });
}
// 保存成绩发布
export function publishScore (data = {}) {
    return fetch({
        url: '/api/scoremanagementservice/teachingClassScore/publishScore',
        method: 'POST',
        data
    });
}

/**
 * 根据成绩记录方式获取列表数据
 * @param {*} recordType
 */
export function getScoreDetailsByTypeCode(recordType, managerDeptId) {
    return fetch({
        url: '/api/scoremanagementservice/scoreRecordMode/getScoreDetailsByTypeCode?typeCode=' + recordType + '&managerDeptId=' + managerDeptId,
        method: 'GET'
    });
}
/**
 * 查询课程成绩构成
 * */

export function getScoreComponet(data = {}) {
    return fetch({
        url: '/api/scoremanagementservice/teachingClassScore/getScoreComponet',
        method: 'POST',
        data
    });
}
/**
  * 查询空白得分表
  * params  id :教学班ID
  */

export function getNeedImportScore(id, calendarId) {
    return fetch({
        url: '/api/scoremanagementservice/teachingClassScore/getNeedImportScore?teachingClassId=' + id +'&calendarId=' + calendarId,
        method: 'GET'
    });
}
/**
  * 录入成绩-同步培养
  * 
  */

export function updateNoSelView() {
    return fetch({
        url: '/api/cultureservice/culturePlan/updateNoSelView',
        method: 'GET'
    });
}


